a = 21
b = 10
c = 0
c = a + b
print("1 - c的值为：",c)

c = a - b
print("2 - c的值为：",c)

c = a * b
print("3 - c的值为：",c)

c = a / b
print("4 - c的值为：",c)

c = a % b
print("5 - c的值为：",c)

# 修改变量abc
a = 2
b = 3
c = a**b
print("6 - c的值为：",c)

a = 10
b = 5
c = a / b
print("7 - c的值为：",c)

a = 21
b = 10
c = 0

if( a==b ):
    print("1 - a 等于b")
else:
    print("1 - a 不等于b")

a = 21
b = 10
c = 0
c = a+b
print("1 - c 的值为: ",c)

c += a
print("2 - c 的值为: ",c)

c *= a
print("3 - c 的值为: ",c)

c /= a
print("4 - c 的值为: ",c)

c = 2
c %= a
print("5 - c 的值为: ",c)

c **= a
print("6 - c 的值为: ",c)

c //= a
print("7 - c 的值为: ",c)

a = 60
b = 13
c = 0

c = a & b;
print("1 - c的值为：",c)

c = a | b
print("2 - c的值为：",c)

c = a ^ b
print("3 - c的值为：",c)

c = ~a
print("4 - c的值为：",c)

c = a << 2
print("5 - c的值为：",c)

c = a >> 2
print("6 - c的值为：",c)

a = 10
b = 20

if(a and b):
    print ("1 - 变量 a 和 b 都为 true")
else:
    print("1 - 变量 a 和 b 有一个不为 true")
